﻿using SqlSugar;

namespace Shop.Model.Entity.Goo;

/// <summary>
/// 商品评论
/// </summary>
[SugarTable("goods_review")]
public class GoodsReview: BaseEntity
{
    /// <summary>
    /// 商品Id
    /// </summary>
    public long GoodsId { get; set; }

    /// <summary>
    /// 商品规格
    /// </summary>
    public long GoodsSpecId { get; set; }

    /// <summary>
    /// 用户Id
    /// </summary>
    public long UserId { get; set; }
    
    /// <summary>
    /// 订单Id
    /// </summary>
    public long OrderId { get; set; }
    
    /// <summary>
    /// 评论内容
    /// </summary>
    public string Content { get; set; }
    
    /// <summary>
    /// 视频
    /// </summary>
    public string Video { get; set; }
    
    /// <summary>
    /// 图片
    /// </summary>
    public string Image { get; set; }
    
    /// <summary>
    /// 五星分数
    /// </summary>
    public int Score { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    [SugarColumn(IsOnlyIgnoreInsert = true)]
    public DateTime CreateTime { get; set; }
}